package com.bootdo.lvyou_specialty.dao;

import com.bootdo.lvyou_specialty.domain.LvyouSpecialtyMerchant;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-10 11:41:17
 */
@Mapper
public interface LvyouSpecialtyMerchantDao {

	LvyouSpecialtyMerchant get(Long id);
	
	List<LvyouSpecialtyMerchant> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(LvyouSpecialtyMerchant lvyouSpecialtyMerchant);
	
	int update(LvyouSpecialtyMerchant lvyouSpecialtyMerchant);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	@Update("update me_lvyou_specialty_merchant set user_do_id = #{userDoId} where id = #{id} ")
	int updateUserId(@Param("userDoId")Long userId, @Param("id")Long id);
}
